const { minify } = require('terser')
const genTerserCode = async (code) => {
    const genCode = await minify(code, {
        toplevel: true
    })
    return genCode.code
}
module.exports = {
    genTerserCode
}